/*
 * @Description:
 * @version:
 * @Author: sunqian_sr
 * @Date: 2023-01-31 15:43:06
 * @LastEditors: Andy
 * @LastEditTime: 2023-02-15 10:17:02
 */
import i18n from '@/common/lang'

export const columns = [
  {
    label: i18n.t('resourceAdmin.emailSet.senderName'),
    minWidth: 160,
    width: 'auto',
    prop: 'mailPersonal',
    fixed: true
  },
  {
    label: i18n.t('resourceAdmin.emailSet.smtpAddress'),
    minWidth: 180,
    width: 'auto',
    prop: 'mailHost',
    fixed: true
  },
  {
    label: i18n.t('resourceAdmin.emailSet.smtpPort'),
    minWidth: 180,
    width: 'auto',
    prop: 'mailPort',
    fixed: true
  },
  {
    label: i18n.t('resourceAdmin.emailSet.protocol'),
    minWidth: 180,
    width: 'auto',
    prop: 'protocol'
  },
  {
    label: i18n.t('resourceAdmin.emailSet.certification'),
    minWidth: 180,
    width: 'auto',
    prop: 'mechanisms'
  },
  {
    label: i18n.t('resourceAdmin.emailSet.userName'),
    minWidth: 180,
    width: 'auto',
    prop: 'username'
  },
  {
    label: i18n.t('resourceAdmin.emailSet.logVerification'),
    minWidth: 180,
    width: 'auto',
    prop: 'auth'
  },
  {
    label: i18n.t('resourceAdmin.emailSet.ssl'),
    minWidth: 180,
    width: 'auto',
    prop: 'smtpSsl'
  },
  {
    label: i18n.t('resourceAdmin.emailSet.tls'),
    minWidth: 180,
    width: 'auto',
    prop: 'tls'
  },
  {
    label: i18n.t('resourceAdmin.emailSet.state'),
    minWidth: 180,
    width: 'auto',
    prop: 'state'
  },
  {
    label: i18n.t('resourceAdmin.emailSet.creatTime'),
    width: 'auto',
    minWidth: 160,
    prop: 'createTime'
  }
]

export const actions = [
  {
    key: 'edit',
    text: i18n.t('common.edit'),
    permissions: 'mail:setting:update'
  },
  {
    key: 'delete',
    text: i18n.t('common.delete'),
    permissions: 'mail:setting:delete'
  }
]
